    $('#Women .clothing-list').mouseenter(function () {
        // console.log(123)
        $(this).addClass('red').siblings().removeClass('red');
        $('#Women').find('.clothing-content-right').eq($(this).index()).addClass('show').siblings().removeClass('show')
    })
    $('#man .clothing-list').mouseenter(function () {
        // console.log(123)
        $(this).addClass('red').siblings().removeClass('red');
        $('#man').find('.clothing-content-right').eq($(this).index()).addClass('show').siblings().removeClass('show')
    })
    $('#accessory .clothing-list').mouseenter(function () {
        console.log(123)
        $(this).addClass('red').siblings().removeClass('red');
        $('#accessory').find('.clothing-content-right').eq($(this).index()).addClass('show').siblings().removeClass('show')
    })
    $('#underwear .clothing-list').mouseenter(function () {
        // console.log(123)
        $(this).addClass('red').siblings().removeClass('red');
        $('#underwear').find('.clothing-content-right').eq($(this).index()).addClass('show').siblings().removeClass('show')
    })
    $('#outdoor .clothing-list').mouseenter(function () {
        // console.log(123)
        $(this).addClass('red').siblings().removeClass('red');
        $('#outdoor').find('.clothing-content-right').eq($(this).index()).addClass('show').siblings().removeClass('show')
    })

    var Gpics = document.getElementsByClassName('G-pics')[0];
    var dots = document.getElementsByClassName('dot');

    // 排他函数
    for (var i = 0; i < dots.length; i++) {
        dots[i].index = i;
        dots[i].onmouseenter = function () {
            // console.log(321);
            // clearInterval(ostop);
            for (var j = 0; j < dots.length; j++) {
                dots[j].className = "dot";
            };
            this.className = "dot Gbred";
            var target = this.index * (-950);
            moveAnimation2(Gpics, target);
        }
    };
    // console.log(dots);
    function backcircle(ele) {
        for (var j = 0; j < ele.length; j++) {
            ele[j].className = "dot";
        };
    }
    var flag = 0;
    var count = 0;
    var ostop;
    function autoplay() {
        ostop = setInterval(function () {
            flag++;
            count++;
            if (flag == dots.length) {
                flag = 0;
            };
            if (count == Gpics.children.length) {
                Gpics.style.left = 0;
                console.log('拉回');
                count = 1;
            };
            backcircle(dots);
            dots[flag].className = "dot Gbred";
            var target = count * (-950);
            moveAnimation2(Gpics, target);
        }, 3000);
    };
    autoplay();

    $('.text').mouseenter(function(){
        $(this).css({
            'color':'#fff'
        })
    })

    var flash_saleTop = $('.flash-sale').offset().top;
    $(window).scroll(function () {
        console.log($(window).scrollTop());
        if ($(window).scrollTop() >= flash_saleTop) {
            $('.sidebar-left').fadeIn(600);
        } else {
            $('.sidebar-left').fadeOut(600);
        };
        // console.log($('.change'));
        $('.G-nav').each(function (index, value) {
            // console.log(value);
            if ($(window).scrollTop() >= value.offsetTop) {
                
                // console.log(value.offsetTop);
                $('.change').eq(index).addClass('checked').end().not($('.change').eq(index)).removeClass('checked')
            }
        })
    })

    function gotop(eve, nnumber) {
        $(eve).click(function () {
            // 注意用html

            $('html').animate({
                scrollTop: nnumber
            }, 600);
        });
    }

   
    gotop('#gettop', 0)
    gotop('.limit', 680)
    gotop('.Women', 884)
    gotop('.man', 1650)
    gotop('.accessory', 2419)
    gotop('.underwear', 3190)
    gotop('.outdoor', 3967)
    gotop('.at-will', 4730)

    var ssglb = document.querySelector('#ssglb');
    var leftjiant = document.querySelector('.leftjiant');
    var rightjiant = document.querySelector('.rightjiant');
    var G_fotter = document.querySelector('#at-will');
    G_fotter.onmouseover = function () {
        leftjiant.style.display = "block";
        rightjiant.style.display = "block";
    }
    G_fotter.onmouseout = function () {
        leftjiant.style.display = "none";
        rightjiant.style.display = "none";
    }


   
    $('.leftjiant').click(function () {
        console.log(123);
        $('#ssglb').stop().animate({
            left: 0
        })
    })
    $('.rightjiant').click(function () {
        $('#ssglb').stop().animate({
            left: -1200
        })
    })




